package com.dingyh.shopwebbackground.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Tolerate;

/**
 * <p>
 * 
 * </p>
 *
 * @author dingyuhan
 * @since 2023-02-14
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
public class Commodity implements Serializable {

    @Tolerate
    public Commodity() {
    }

    private static final long serialVersionUID=1L;

    private String id;

    private String companyid;

    private Long timeAdd;

    /**
     * 单价
     */
    private BigDecimal price;

    private String title;

    /**
     * 商品详情
     */
    private String detail;

    /**
     * 商品类型
     */
    private String type;

    /**
     * 商品主图
     */
    private String img;

    /**
     * 库存
     */
    private BigDecimal stock;

    /**
     * 店铺名字
     */
    private String companyname;

    private String test1;

    /**
     * 0: 未推送; 1: 轮播推送; 2: 首页推送;
     */
    private String ispush;

    /**
     * 月销
     */
    private BigDecimal month;

    @TableField(exist = false)
    private String typeUseOne;

    @TableField(exist = false)
    private String typeUseTwo;

    @TableField(exist = false)
    private String typeEatOne;

    @TableField(exist = false)
    private String typeEatTwo;

    @TableField(exist = false)
    private String typeEatThree;

}
